-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
br: add GetTSWithRetry func #38663
br: add GetTSWithRetry func #38663
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/component br |
/run-all-tests |
2ce4418
to
465f96e
Compare
/run-integration-br-test |
1 similar comment
/run-integration-br-test |
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
465f96e
to
df06f50
Compare
/run-unit-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest lgtm
@@ -1374,7 +1400,7 @@ func (rc *Client) execChecksum( | |||
ctx = opentracing.ContextWithSpan(ctx, span1) | |||
} | |||
|
|||
startTS, err := rc.GetTS(ctx) | |||
startTS, err := rc.GetTSWithRetry(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we replace all rc.GetTS
with rc.GetTSWithRetry
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe yes. But GetTS
is widely used, so I think it needs careful evaluation and testing.
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
@MoCuishle28: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5a4bdcc
|
TiDB MergeCI notify🔴 Bad News! New failing [2] after this pr merged.
|
/label needs-cherry-pick-release-6.1 |
In response to a cherrypick label: new pull request created: #39310. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: ref #36910
Problem Summary:
When the switch of the leader occurs in the PD, it affect the BR restore checksum process.
What is changed and how it works?
Add
GetTSWithRetry
func to replaceGetTS
inexecChecksum
funcCheck List
Tests
Side effects
Documentation
Manual Test
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.